	.globl running, scheduler, tswitch
tswitch:
SAVE:	pushl %eax
	pushl %ebx
	pushl %ecx
	pushl %edx
	pushl %ebp
	pushl %esi
	pushl %edi
	pushfl
	movl   running,%ebx
	movl   %esp,4(%ebx)
FIND: 	call   scheduler
RESUME: movl   running,%ebx
        Movl   4(%ebx),%esp
	popfl
	popl %edi
	popl %esi
	popl %ebp
	popl %edx
	popl %ecx
	popl %ebx
	popl %eax
	ret


